<?php	
	$username = $_SESSION['username'];

	if(is_dir('uploads/' . $username))
		$check = TRUE;
	else
		$check = FALSE;
		
	if($check === FALSE)
		$make = mkdir('uploads/' . $username);
		
?>

<?php require('includes/header.php'); ?>
<?php require('includes/nav.php'); ?>

<h3>Upload race flyers, race photos, race resutls, etc</h3>

<?php echo $error;?>
<p>
<?php echo form_open_multipart('http://localhost/runningrecords/index.php/upload/do_upload'); ?>

<p>
<input type="file" name="userfile" size="20" />
</p>

<p>
<input type="submit" value="upload" />
</p>

</form>
</p>
<?php require('includes/footer.php'); ?>